﻿#ifndef ACTIONDIALOG_H
#define ACTIONDIALOG_H

#include <QDialog>
#include <QMap>

namespace Ui {
class ActionDialog;
}

class QTreeWidgetItem;
class ActionDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ActionDialog(QWidget *parent = 0);
    ~ActionDialog();

    void updateTreeItem(QTreeWidgetItem* pTreeItem);

    QString actionText();
    QString actionContext();
//    bool actionCheckable();
//    bool actionCheckedDefault();
    QString actionIcon();
    int actionStyle();
    QString actionPage();
    QString actionGroup();

private:
    void initPage();

private slots:
    void on_toolButton_selectIcon_clicked();

    void on_lineEdit_ActionText_textChanged(const QString &arg1);

    void on_checkBoxDefinePage_stateChanged(int arg1);

    void on_checkBox_DefineGroup_stateChanged(int arg1);

    void on_comboBox_ActionPage_currentIndexChanged(const QString &arg1);

    void on_comboBox_ActionGroup_currentIndexChanged(const QString &arg1);

private:
    Ui::ActionDialog *ui;
    // page,group
    QMap<QString,QStringList> mapEnName;
    // 翻译
    QMap<QString,QString> mapEnCh;
    QString mCurPage;
    QString mCurGroup;
};



#endif // ACTIONDIALOG_H
